var href = location.href
var ifsuc = href.substr(href.lastIndexOf('?') + 1)
if (ifsuc === 'registersuc=false') {
  alert('注册失败')
}